﻿using System;
using System.Diagnostics;

namespace StockUI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                StockApplication.Instance.Init();
                StockApplication.Instance.Run();
            }
            catch(Exception ex)
            {
                Trace.WriteLine(ex.ToString());
            }
            finally
            {
                StockApplication.Instance.Exit();
            }
        }
    }
}
